<%@ page import="edu.jmu.domain.Admin" %><%--
  Created by IntelliJ IDEA.
  User: 温海杰
  Date: 2020/6/16
  Time: 14:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>新闻管理后台</title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/AdminLTE.css">
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/_all-skins.min.css">
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-3.5.1.min.js"></script>
</head>
<script>

    function exitBtn() {
       var r=confirm("确认退出？")
        if(r==true){
            window.location.href="${pageContext.request.contextPath}/admin/shutdown";
        }
    }
</script>
<style>
    .button{
        border-right: blue 1px solid;
        border-top: blue 1px solid;
        width: 50px;
        height: 50px;
        float:right;
        background:url('${pageContext.request.contextPath}/images/exit.png') no-repeat;
        border-style: none;
        background-size: cover;
    }
</style>
<body class="hold-transition skin-blue sidebar-mini">

<div class="wrapper">
    <!-- 页面头部 -->
    <!-- 页面头部 -->
    <header class="main-header">

        <!-- Header Navbar: style can be found in header.less -->
        <nav class="navbar navbar-static-top"style="text-align: center;">
            <!-- Sidebar toggle button-->

                <button type="button" class="button"  onclick="exitBtn()"></button>

        </nav>
    </header>
    <!-- 页面头部 /-->
    <!-- 导航侧栏 -->
    <aside class="main-sidebar">

        <section class="sidebar">
            <ul class="sidebar-menu">
                <li class="header">菜单</li>
                <!-- 菜单 -->
                <li id="admin-index1"><a href="${pageContext.request.contextPath}/admin/index"><i class=""></i> <span>首页</span></a></li>
                <li id="admin-index2"><a href="${pageContext.request.contextPath}/admin/showNewsInfo"><i class=""></i> <span>新闻列表</span></a></li>
                <li id="admin-index3"><a href="${pageContext.request.contextPath}/news/addNews"><i class=""></i> <span>发布新闻</span></a></li>
                <li id="admin-index4"><a href="${pageContext.request.contextPath}/admin/showDraftsInfo"><i class=""></i>
                    <span>草稿箱</span></a></li>
                <!-- 菜单 /-->
            </ul>
        </section>
    </aside>
    <!-- 导航侧栏 /-->

    <!-- 内容区域 -->
    <div class="content-wrapper">

    <section class="content">
    <!---输入内容---->
    <img src="${pageContext.request.contextPath}/images/index.png" style="height:100%;width:100%;"  />
    <!-- /.error-page -->
    </section>
    <!-- /.content -->
</div>
<!-- 内容区域 /-->



<!-- 底部导航 -->
<footer class="main-footer">
    <strong>Copyright &copy; web第三小组
</footer>
<!-- 底部导航 /-->
</div>
</body>
</html>
